﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ch01
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void 打开子窗体ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            //在MDI容器中打开显示一个新窗体

            //创建窗体
            Form1 f1 = new Form1();
            //显示窗体
            f1.Show();
            //将f1子窗体的父容器窗体设置为当前窗体
            f1.MdiParent = this;
        }
    }
}
